package com.fcscs.cservice.ws.client.commonservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.commonservice.GetFieldEditConfRequest;
import com.fcscs.cservice.ws.schema.commonservice.GetFieldEditConfResponse;

public class GetFieldEditConfClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetFieldEditConfClient.class);
	
	public GetFieldEditConfResponse getFieldEditConf(GetFieldEditConfRequest req) {
		GetFieldEditConfResponse resp = (GetFieldEditConfResponse)getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("------------ GetFieldEditConfResponse size: " + (resp.getFieldEditList() == null ? 0 : resp.getFieldEditList().size()));
		return resp;
	}
}
